<div id="dashboard">
    <div class="container">
        <div class="row bbem-row">
            <img src="<?php echo site_url()?>assets/images/wholelogo.png" alt="logo" class="col-md-4 col-sm-4 col-xs-12">
            <h1 class="col-xs-12 col-md-offset-2 col-md-6 col-sm-7 bbem-user text-right" 
                >Welcome <?php echo $this->session->userdata('lname').', '.$this->session->userdata('fname')?></h1>
            <?php 
                $eve = explode('-', $this->session->userdata('eve_priv'));
                $con = explode('-', $this->session->userdata('con_priv'));
                $gue = explode('-', $this->session->userdata('gue_priv'));
            ?>
        </div>
        <div class="row bbem-icons">
            <div class="col-xs-6 col-sm-3 col-md-2">
              <a href="<?php echo site_url()?>my-account" class="thumbnail bg-none" >
                <img class="icon" src="<?php echo site_url()?>assets/images/account.png" alt="My Account" title="My Account">
                <div class="caption text-center font-color visible-xs" style="color:#ffffff">
                    <h3>My Account</h3>
                </div>
              </a>
            </div>
            <?php if($eve[1]==0){?>
            <div class="col-xs-6 col-sm-3 col-md-2">
                <a href="<?php echo site_url()?>events/calendar/<?php $now = new DateTime(); $month = $now->format('m');$year = $now->format('Y'); echo $year.'/'.$month?>" 
                   class="thumbnail bg-none">
                <img class="icon" src="<?php echo site_url()?>assets/images/event.png" alt="Event" title="Event"/>
                <div class="caption text-center font-color visible-xs" style="color:#ffffff">
                    <h3>Event</h3>
                </div>
              </a>
            </div>
            <?php } ?>
            <?php if($con[1]==0){?>
            <div class="col-xs-6 col-sm-3 col-md-2">
              <a href="<?php echo site_url()?>contacts" class="thumbnail bg-none">
                <img class="icon" src="<?php echo site_url()?>assets/images/contacts.png" alt="Contact" title="Contact" />
                <div class="caption text-center font-color visible-xs" style="color:#ffffff">
                    <h3>Contact</h3>
                </div>
              </a>
            </div>
            <?php } ?>
            <div class="col-xs-6 col-sm-3 col-md-2">
              <a href="<?php echo site_url()?>resource" class="thumbnail bg-none">
                <img class="icon" src="<?php echo site_url()?>assets/images/resources.png" alt="Resource" title="Resource"/>
                <div class="caption text-center font-color visible-xs" style="color:#ffffff">
                    <h3>Resource</h3>
                </div>
              </a>
            </div>
            <div class="col-xs-6 col-sm-3 col-md-2">
              <a href="<?php echo site_url()?>messages" class="thumbnail bg-none">
                <img class="icon" src="<?php echo site_url()?>assets/images/messages.png" alt="Message" title="Message" />
                <div class="caption text-center font-color visible-xs" style="color:#ffffff">
                    <h3>Message</h3>
                </div>
              </a>
            </div>
            <?php if($gue[1]==0){?>
            <div class="col-xs-6 col-sm-3 col-md-2">
              <a href="<?php echo site_url()?>guest/choose-design" class="thumbnail bg-none">
                <img class="icon" src="<?php echo site_url()?>assets/images/guest.png" alt="Guest" title="Guest" />
                <div class="caption text-center font-color visible-xs" style="color:#ffffff">
                    <h3>Guest</h3>
                </div>
              </a>
            </div>
            <?php } ?>
            <!--            <div class="col-xs-6 col-md-3 bg-none">
              <a href="#" class="thumbnail bg-none">
                <img class="icon" src="<?php echo site_url()?>assets/images/statistics.png" alt="Statistics" />
                <div class="caption text-center font-color">
                    <h3>Statistics</h3>
                </div>
              </a>
            </div>-->
        </div>
    </div>
</div>
